Previous Book Contents Book Index Next

Inside Macintosh: QuickTime /
Chapter 2 - Movie Toolbox / Movie Toolbox Reference
Time Base Functions / Creating and Disposing of Time Bases


SetMovieMasterClock

You can use the SetMovieMasterClock function to assign a clock component to a movie. Do not use the SetTimeBaseMasterClock function to assign a clock component to a movie.

pascal void SetMovieMasterClock (Movie theMovie, 
                                 Component clockMeister, 
                                 const TimeRecord *slaveZero);
theMovie
Specifies the movie for this operation. Your application obtains this movie identifier from such functions as NewMovie, NewMovieFromFile, and NewMovieFromHandle (described on page 2-80, page 2-76, and page 2-78, respectively).
clockMeister
Specifies the clock component to be assigned to this movie. Your application can obtain this component identifier from the Component Manager's FindNextComponent routine (see the chapter "Component Manager" in Inside Macintosh: More Macintosh Toolbox for more information about this routine).
slaveZero
Contains a pointer to the time, in the clock's time scale, that corresponds to a 0 time value for the movie. This parameter allows you to set an offset between the clock component and the time base of the movie. Set this parameter to nil if there is no offset.
ERROR CODES
None


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996